package com.seedwill.common.query.schema;

import java.util.List;

import com.seedwill.common.meta.DataType;

/**
 * 查询条件元数据
 * 
 * 
 * @author kdyi
 *
 */
public class QueryCriteriaSchema {
	
	/**
	 * 编号
	 */
	protected String schemaId;

	public String getSchemaId() {
		return schemaId;
	}

	public void setSchemaId(String id) {
		this.schemaId = id;
	}
	
	protected String parentSchemaCode;
	
	private boolean visuable = true;
	/**
	 * 条件顺序
	 */
	protected int index;
	/**
	 * 名称
	 */
	protected String schemaName;
	/**
	 * 默认值
	 */
	protected Object defaultValue;
	
    /**
     * 条件操作
     */
	protected CriteriaOperation operation;
    /**
     * 条件连接方式
     */
	protected CriteriaJoin join;
    /**
     * 数据类型
     */
	protected DataType dataType;
	
	protected int jdbcType;
	
	protected int schemaScale;
	
	protected int schemaProc;
	
	/**
	 * 输入名称
	 */
	private String inputName;
	
	private String inputId;
	
	private String[] inputNames;
	
	private String[] inputIds;
	/**
	 * 输入类型
	 */
	private InputType inputType;
	/**
	 * 标签
	 */
	private String label;
	/**
	 * 校验
	 */
	private List<ValidatorSchema> validatorSchemaes;
	
	/**
	 * 预定义数据源
	 */
	private String dataSource;
	
    
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public String getSchemaName() {
		return schemaName;
	}
	public void setSchemaName(String name) {
		this.schemaName = name;
	}
	public CriteriaOperation getOperation() {
		return operation;
	}
	public void setOperation(CriteriaOperation operation) {
		this.operation = operation;
	}
	public CriteriaJoin getJoin() {
		return join;
	}
	public void setJoin(CriteriaJoin join) {
		this.join = join;
	}
	public DataType getDataType() {
		return dataType;
	}
	public void setDataType(DataType dataType) {
		this.dataType = dataType;
	}

	public Object getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(Object defaultValue) {
		this.defaultValue = defaultValue;
	}

	public String getInputName() {
		return inputName;
	}

	public void setInputName(String inputName) {
		this.inputName = inputName;
	}

	public InputType getInputType() {
		return inputType;
	}

	public void setInputType(InputType inputType) {
		this.inputType = inputType;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public List<ValidatorSchema> getValidatorSchemaes() {
		return validatorSchemaes;
	}

	public void setValidatorSchemaes(List<ValidatorSchema> validatorSchemaes) {
		this.validatorSchemaes = validatorSchemaes;
	}

	public String getDataSource() {
		return dataSource;
	}

	public void setDataSource(String dataSource) {
		this.dataSource = dataSource;
	}

	public int getJdbcType() {
		return jdbcType;
	}

	public void setJdbcType(int jdbcType) {
		this.jdbcType = jdbcType;
	}

	public String[] getInputNames() {
		return inputNames;
	}

	public void setInputNames(String[] inputNames) {
		this.inputNames = inputNames;
	}

	public boolean isVisuable() {
		return visuable;
	}

	public void setVisuable(boolean visuable) {
		this.visuable = visuable;
	}

	public String getInputId() {
		return inputId;
	}

	public void setInputId(String inputId) {
		this.inputId = inputId;
	}

	public String[] getInputIds() {
		return inputIds;
	}

	public void setInputIds(String[] inputIds) {
		this.inputIds = inputIds;
	}

	public int getSchemaScale() {
		return schemaScale;
	}

	public void setSchemaScale(int schemaScale) {
		this.schemaScale = schemaScale;
	}

	public int getSchemaProc() {
		return schemaProc;
	}

	public void setSchemaProc(int schemaProc) {
		this.schemaProc = schemaProc;
	}

	public String getParentSchemaCode() {
		return parentSchemaCode;
	}

	public void setParentSchemaCode(String parentSchemaCode) {
		this.parentSchemaCode = parentSchemaCode;
	}
}
